package lagou.MapTest.ListTest;

import java.util.LinkedList;
import java.util.List;

public class GenericTest {
    public static void main(String[] args) {
        List<String> l1 = new LinkedList<String>();//泛型双向链表
        l1.add("yankun");
        String str = l1.get(0);
        System.out.println(str);
        List<Integer> i1 = new LinkedList<>();//后面的可以不写
    }
}
